package edu.xlh.travel.service;

import com.alibaba.fastjson.JSONArray;
import edu.xlh.travel.common.Result;
import edu.xlh.travel.pojo.CheckingTask;
import edu.xlh.travel.pojo.querypojo.QueryCheckTask;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

public interface CheckingTaskService {
    Result drawback(String orderId, String orderType , HttpSession session);

    Result findAllCheckingTask(int page, int limit , HttpSession session);

    Result agree(CheckingTask checkingTask, HttpSession session);

    Result reject(CheckingTask checkingTask, HttpSession session);

    Result cancelOrder(String orderId ,String orderType , HttpSession session);

    Result QueryCheckingTaskByCondition(Integer page, Integer limit, QueryCheckTask queryCheckingTask, HttpSession session);

    Result deleteById(String id, HashMap hashMap, HttpSession session);

    Result batchDelete(JSONArray jsonArray, String taskType , HttpSession session);

    Result checkOut(String orderId, HttpSession session);
}
